#ifndef RIGHTCLICKABLEBUTTON_H
#define RIGHTCLICKABLEBUTTON_H

#include <QPushButton>

class RightClickableButton : public QPushButton
{
    Q_OBJECT
    Q_PROPERTY(bool marked READ ismarked WRITE setmarked)

public:
    explicit RightClickableButton(QWidget *parent = 0);
    bool ismarked();
    void setmarked(bool);

signals:
    void rightClicked(QString);

private:
    bool eventFilter(QObject *, QEvent *);
    bool marked;

};

#endif // RIGHTCLICKABLEBUTTON_H
